import urllib
from clutch.globals import G

def call(url, *args, **kwargs):
    app, path = urllib.splittype(url)
    path = path[1:]
    app = G.application.api[app]
    return app.call_api(path, *args, **kwargs)
